package com.yyp.car.service;

import java.util.List;

import javax.annotation.Resource;

import org.springframework.stereotype.Service;

import com.yyp.car.Idao.IStudentTTDao;
import com.yyp.car.Iservice.IStudentTTService;
import com.yyp.car.model.StudentTT;

@Service("studentTTService")
public class StudentTTService implements IStudentTTService {
	@Resource(name = "studentTTDao")
	private IStudentTTDao istt;

	@Override
	public StudentTT add(StudentTT stt) {
		return istt.add(stt);
	}

	@Override
	public void delete(int id) {
		istt.delete(id);

	}

	@Override
	public void update(StudentTT stt) {
		istt.update(stt);
	}

	@Override
	public Integer getMarks(int sid, int ttid) {
		return istt.getMarks(sid, ttid);
	}

	@Override
	public void updateMarks(int sid, int ttid, Integer marks) {
		istt.updateMarks(sid, ttid, marks);;
	}

	@Override
	public Integer findId(int sid, int ttid) {
		return istt.findId(sid, ttid);
	}

	@Override
	public List<StudentTT> listMarksAndTtid(int sid) {
		return istt.listMarksAndTtid(sid);
	}

}
